package com.example.blogserver.mapper;

import com.example.blogserver.pojo.Article;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@SuppressWarnings({"all"})
@Mapper
public interface ArticleMapper {
    List<Article> getAllBlog(int articleStatus);

    List<Article> getArticlesByWord(String word);

    List<Article> getArticlesByAccount(String account,int status);

    int addArticle(Article article);

    Article getArticleByBlogId(String blogId);

    int getExamineSumByUserInfo();

    int getFailSumByUserInfo();

    void addConsult(Integer blogId);

    void deleteArticleByBlogId(String blogId);

    void updateGood(Integer blogId);

    int updateArticle(String blogId, String titled, String contentd, String time);

    void updateArticleStatus(String blogId, int i);

}
